package hello;

import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.HashMap;

import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.protocol.HTTP;
import org.apache.http.util.EntityUtils;

import com.alibaba.fastjson.JSON;

public class testProuct {
	private static SimpleDateFormat  form = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	public static void main(String[] args) {	
		search();
		/*create1();
		create2();
		create3();
		create4();
		create5();
		create6();
		create7();
		create8();
		create9();
		create10();*/
   }
	
	public static void create1(){
		HashMap<String, Object> map = new HashMap<String, Object>();
     	// map集合
        HashMap<String, Object> head = new HashMap<String, Object>();
        head.put("user_uuid", "696cf8cdf4e65ae3f7b836cdf14ca0c0");
        head.put("password", "123456");
        map.put("head", head);	
        
        HashMap<String, Object> body = new HashMap<String, Object>();
        String[] imageList = {"http://zhongyou2016.img-cn-shanghai.aliyuncs.com/0100002/a1.jpg","http://zhongyou2016.img-cn-shanghai.aliyuncs.com/0100002/a2.jpg","http://zhongyou2016.img-cn-shanghai.aliyuncs.com/0100002/a3.jpg"};
        String[] descList = {"http://zhongyou2016.img-cn-shanghai.aliyuncs.com/0100002/a1.jpg","http://zhongyou2016.img-cn-shanghai.aliyuncs.com/0100002/a2.jpg","http://zhongyou2016.img-cn-shanghai.aliyuncs.com/0100002/a3.jpg"};
        
        body.put("account_uuid", "696cf8cdf4e65ae3f7b836cdf14ca0c0");
        body.put("title", "【日本明治 2盒2口味装】PLAIN系列苏打饼干薄脆+燕麦 104g/盒");
        body.put("salePrice", 39f);
        body.put("message", "轻薄美味的苏打饼干，咬下去非常的香脆，营养搭配也很好，均衡膳食，美味又健康，作为早餐或是下午茶是再好不过了~");
        body.put("imageList", imageList);
        body.put("descList", descList);
        map.put("body",body);
  
   	    String jsonString = JSON.toJSONString(map); 
   	    System.out.println(jsonString);
   	    //评审类别 approval_type，案件uuid case_uuid，案件阶段 case_phase_uuid 创建人uuid creator_uuid
   	    //查找案件主办律师
   	    //新建审批条目 在审批信息表 approval_inner_base_infos中0558
   	    //返回审批uuid
   	    String url = "http://xingpin.cto1024.com/mingai-admin-api/product/create";
   	    // String url = "192.168.1.101:8080/apparel/alipay/confirm";
   	    // String url = "http://test.appring.cn:8080/fastask/question/show"; /* * * * * * root wget http://test.appring.cn:8080/fastask/energy/timing -q -O /usr/local/time/timelog
 	    HttpPost httpPost = new HttpPost(url);
   	    StringEntity entity;
   	    entity = new StringEntity(jsonString, HTTP.UTF_8);
		entity.setContentType("application/json");
		httpPost.setEntity(entity);
		@SuppressWarnings("deprecation")
		HttpClient client = new DefaultHttpClient();
		try {
			HttpResponse response = client.execute(httpPost);
			//获取服务器返回页面的值
			HttpEntity entity2=response.getEntity();
			String xmlContent=EntityUtils.toString(entity2);
			System.out.println(java.net.URLDecoder.decode(xmlContent, "utf-8"));
			System.out.println(response.toString());

		} catch (ClientProtocolException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	public static void create2(){
		HashMap<String, Object> map = new HashMap<String, Object>();
		// map集合
		HashMap<String, Object> head = new HashMap<String, Object>();
		head.put("user_uuid", "696cf8cdf4e65ae3f7b836cdf14ca0c0");
		head.put("password", "123456");
		map.put("head", head);	
		
		HashMap<String, Object> body = new HashMap<String, Object>();
		String[] imageList = {"http://zhongyou2016.img-cn-shanghai.aliyuncs.com/0100003/a1.jpg","http://zhongyou2016.img-cn-shanghai.aliyuncs.com/0100003/a2.jpg","http://zhongyou2016.img-cn-shanghai.aliyuncs.com/0100003/a3.jpg"};
		String[] descList = {"http://zhongyou2016.img-cn-shanghai.aliyuncs.com/0100003/a1.jpg","http://zhongyou2016.img-cn-shanghai.aliyuncs.com/0100003/a2.jpg","http://zhongyou2016.img-cn-shanghai.aliyuncs.com/0100003/a3.jpg"};
		
		body.put("account_uuid", "696cf8cdf4e65ae3f7b836cdf14ca0c0");
		body.put("title", "【日本进口 超值零食组合 4盒4图案装】明治乐园系列饼干 70g/盒");
		body.put("salePrice", 58f);
		body.put("message", "明治乐园系列饼干，小巧的饼干可以锻炼宝宝捡拾能力；饼干上印有图案，很有趣又有非常好吃，富含铁质，帮助宝宝骨骼和牙齿的发育。四款搭配更过瘾，妈妈也爱吃喔~");
		body.put("imageList", imageList);
		body.put("descList", descList);
		map.put("body",body);
		
		String jsonString = JSON.toJSONString(map); 
		System.out.println(jsonString);
		//评审类别 approval_type，案件uuid case_uuid，案件阶段 case_phase_uuid 创建人uuid creator_uuid
		//查找案件主办律师
		//新建审批条目 在审批信息表 approval_inner_base_infos中0558
		//返回审批uuid
		String url = "http://xingpin.cto1024.com/mingai-admin-api/product/create";
		// String url = "192.168.1.101:8080/apparel/alipay/confirm";
		// String url = "http://test.appring.cn:8080/fastask/question/show"; /* * * * * * root wget http://test.appring.cn:8080/fastask/energy/timing -q -O /usr/local/time/timelog
		HttpPost httpPost = new HttpPost(url);
		StringEntity entity;
		entity = new StringEntity(jsonString, HTTP.UTF_8);
		entity.setContentType("application/json");
		httpPost.setEntity(entity);
		@SuppressWarnings("deprecation")
		HttpClient client = new DefaultHttpClient();
		try {
			HttpResponse response = client.execute(httpPost);
			//获取服务器返回页面的值
			HttpEntity entity2=response.getEntity();
			String xmlContent=EntityUtils.toString(entity2);
			System.out.println(java.net.URLDecoder.decode(xmlContent, "utf-8"));
			System.out.println(response.toString());
			
		} catch (ClientProtocolException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	public static void create3(){
		HashMap<String, Object> map = new HashMap<String, Object>();
		// map集合
		HashMap<String, Object> head = new HashMap<String, Object>();
		head.put("user_uuid", "696cf8cdf4e65ae3f7b836cdf14ca0c0");
		head.put("password", "123456");
		map.put("head", head);	
		
		HashMap<String, Object> body = new HashMap<String, Object>();
		String[] imageList = {"http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100004/a1.jpg","http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100004/a2.jpg","http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100004/a3.jpg"};
		String[] descList = {"http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100004/a1.jpg","http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100004/a2.jpg","http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100004/a3.jpg"};
		
		body.put("account_uuid", "696cf8cdf4e65ae3f7b836cdf14ca0c0");
		body.put("title", "【泰国美味坚果 3盒3品种装】东园坚果罐装组合盐焗综合坚果+芥末青豆+香脆花生 150g/罐+180g/罐+200g/罐");
		body.put("salePrice", 68f);
		body.put("message", "东园系列产品行销全球多个国家，坚果入口香脆无比，美味在即，果仁饱满浑圆，鲜香酥脆，非常受吃货的欢迎喔~ 休闲零食，周末宅在家. 看电视，看球赛其乐无穷。");
		body.put("imageList", imageList);
		body.put("descList", descList);
		map.put("body",body);
		
		String jsonString = JSON.toJSONString(map); 
		System.out.println(jsonString);
		//评审类别 approval_type，案件uuid case_uuid，案件阶段 case_phase_uuid 创建人uuid creator_uuid
		//查找案件主办律师
		//新建审批条目 在审批信息表 approval_inner_base_infos中0558
		//返回审批uuid
		String url = "http://xingpin.cto1024.com/mingai-admin-api/product/create";
		// String url = "192.168.1.101:8080/apparel/alipay/confirm";
		// String url = "http://test.appring.cn:8080/fastask/question/show"; /* * * * * * root wget http://test.appring.cn:8080/fastask/energy/timing -q -O /usr/local/time/timelog
		HttpPost httpPost = new HttpPost(url);
		StringEntity entity;
		entity = new StringEntity(jsonString, HTTP.UTF_8);
		entity.setContentType("application/json");
		httpPost.setEntity(entity);
		@SuppressWarnings("deprecation")
		HttpClient client = new DefaultHttpClient();
		try {
			HttpResponse response = client.execute(httpPost);
			//获取服务器返回页面的值
			HttpEntity entity2=response.getEntity();
			String xmlContent=EntityUtils.toString(entity2);
			System.out.println(java.net.URLDecoder.decode(xmlContent, "utf-8"));
			System.out.println(response.toString());
			
		} catch (ClientProtocolException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	public static void create4(){
		HashMap<String, Object> map = new HashMap<String, Object>();
		// map集合
		HashMap<String, Object> head = new HashMap<String, Object>();
		head.put("user_uuid", "696cf8cdf4e65ae3f7b836cdf14ca0c0");
		head.put("password", "123456");
		map.put("head", head);	
		
		HashMap<String, Object> body = new HashMap<String, Object>();
		String[] imageList = {"http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100005/a1.jpg","http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100005/a2.jpg","http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100005/a3.jpg"};
		String[] descList = {"http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100005/a1.jpg","http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100005/a2.jpg","http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100005/a3.jpg"};
		
		body.put("account_uuid", "696cf8cdf4e65ae3f7b836cdf14ca0c0");
		body.put("title", "【泰国美味坚果 12包3口味装】东园坚果超值分享装 40g/包");
		body.put("salePrice", 58f);
		body.put("message", "东园系列产品行销全球多个国家，坚果入口香脆无比，美味在即，果仁饱满浑圆，鲜香酥脆，非常受吃货的欢迎喔~超值分享装，不容错过喔~");
		body.put("imageList", imageList);
		body.put("descList", descList);
		map.put("body",body);
		
		String jsonString = JSON.toJSONString(map); 
		System.out.println(jsonString);
		//评审类别 approval_type，案件uuid case_uuid，案件阶段 case_phase_uuid 创建人uuid creator_uuid
		//查找案件主办律师
		//新建审批条目 在审批信息表 approval_inner_base_infos中0558
		//返回审批uuid
		String url = "http://xingpin.cto1024.com/mingai-admin-api/product/create";
		// String url = "192.168.1.101:8080/apparel/alipay/confirm";
		// String url = "http://test.appring.cn:8080/fastask/question/show"; /* * * * * * root wget http://test.appring.cn:8080/fastask/energy/timing -q -O /usr/local/time/timelog
		HttpPost httpPost = new HttpPost(url);
		StringEntity entity;
		entity = new StringEntity(jsonString, HTTP.UTF_8);
		entity.setContentType("application/json");
		httpPost.setEntity(entity);
		@SuppressWarnings("deprecation")
		HttpClient client = new DefaultHttpClient();
		try {
			HttpResponse response = client.execute(httpPost);
			//获取服务器返回页面的值
			HttpEntity entity2=response.getEntity();
			String xmlContent=EntityUtils.toString(entity2);
			System.out.println(java.net.URLDecoder.decode(xmlContent, "utf-8"));
			System.out.println(response.toString());
			
		} catch (ClientProtocolException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	public static void create5(){
		HashMap<String, Object> map = new HashMap<String, Object>();
		// map集合
		HashMap<String, Object> head = new HashMap<String, Object>();
		head.put("user_uuid", "696cf8cdf4e65ae3f7b836cdf14ca0c0");
		head.put("password", "123456");
		map.put("head", head);	
		
		HashMap<String, Object> body = new HashMap<String, Object>();
		String[] imageList = {"http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100006/a1.jpg","http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100006/a2.jpg","http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100006/a3.jpg"};
		String[] descList = {"http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100006/a1.jpg","http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100006/a2.jpg","http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100006/a3.jpg"};
		
		body.put("account_uuid", "696cf8cdf4e65ae3f7b836cdf14ca0c0");
		body.put("title", "【泰国美味坚果 2份装】东园坚果超值分享装(混合装) 300g/包");
		body.put("salePrice", 58f);
		body.put("message", "东园系列产品行销全球多个国家，坚果入口香脆无比，美味在即，果仁饱满浑圆，鲜香酥脆，非常受吃货的欢迎喔~超值分享装，不容错过喔~ 本精选装包含：椰皮香脆花生，东园什锦豆果子，东园芥末青豆，三种口味各2袋，一共6袋.");
		body.put("imageList", imageList);
		body.put("descList", descList);
		map.put("body",body);
		
		String jsonString = JSON.toJSONString(map); 
		System.out.println(jsonString);
		//评审类别 approval_type，案件uuid case_uuid，案件阶段 case_phase_uuid 创建人uuid creator_uuid
		//查找案件主办律师
		//新建审批条目 在审批信息表 approval_inner_base_infos中0558
		//返回审批uuid
		String url = "http://xingpin.cto1024.com/mingai-admin-api/product/create";
		// String url = "192.168.1.101:8080/apparel/alipay/confirm";
		// String url = "http://test.appring.cn:8080/fastask/question/show"; /* * * * * * root wget http://test.appring.cn:8080/fastask/energy/timing -q -O /usr/local/time/timelog
		HttpPost httpPost = new HttpPost(url);
		StringEntity entity;
		entity = new StringEntity(jsonString, HTTP.UTF_8);
		entity.setContentType("application/json");
		httpPost.setEntity(entity);
		@SuppressWarnings("deprecation")
		HttpClient client = new DefaultHttpClient();
		try {
			HttpResponse response = client.execute(httpPost);
			//获取服务器返回页面的值
			HttpEntity entity2=response.getEntity();
			String xmlContent=EntityUtils.toString(entity2);
			System.out.println(java.net.URLDecoder.decode(xmlContent, "utf-8"));
			System.out.println(response.toString());
			
		} catch (ClientProtocolException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	public static void create6(){
		HashMap<String, Object> map = new HashMap<String, Object>();
		// map集合
		HashMap<String, Object> head = new HashMap<String, Object>();
		head.put("user_uuid", "696cf8cdf4e65ae3f7b836cdf14ca0c0");
		head.put("password", "123456");
		map.put("head", head);	
		
		HashMap<String, Object> body = new HashMap<String, Object>();
		String[] imageList = {"http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100007/a1.jpg"};
		String[] descList = {"http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100007/a1.jpg"};
		
		body.put("account_uuid", "696cf8cdf4e65ae3f7b836cdf14ca0c0");
		body.put("title", "【3盒装 果汁味】香港富崎乐猪肉脯 120g/盒");
		body.put("salePrice", 59f);
		body.put("message", "秘制酱汁包裹在猪肉干的表面，结实的肉质，一口咬下去超满足的，精制的猪肉脯，还有5种口味可选，无肉不欢乐的你怎么能错过呢~");
		body.put("imageList", imageList);
		body.put("descList", descList);
		map.put("body",body);
		
		String jsonString = JSON.toJSONString(map); 
		System.out.println(jsonString);
		//评审类别 approval_type，案件uuid case_uuid，案件阶段 case_phase_uuid 创建人uuid creator_uuid
		//查找案件主办律师
		//新建审批条目 在审批信息表 approval_inner_base_infos中0558
		//返回审批uuid
		String url = "http://xingpin.cto1024.com/mingai-admin-api/product/create";
		// String url = "192.168.1.101:8080/apparel/alipay/confirm";
		// String url = "http://test.appring.cn:8080/fastask/question/show"; /* * * * * * root wget http://test.appring.cn:8080/fastask/energy/timing -q -O /usr/local/time/timelog
		HttpPost httpPost = new HttpPost(url);
		StringEntity entity;
		entity = new StringEntity(jsonString, HTTP.UTF_8);
		entity.setContentType("application/json");
		httpPost.setEntity(entity);
		@SuppressWarnings("deprecation")
		HttpClient client = new DefaultHttpClient();
		try {
			HttpResponse response = client.execute(httpPost);
			//获取服务器返回页面的值
			HttpEntity entity2=response.getEntity();
			String xmlContent=EntityUtils.toString(entity2);
			System.out.println(java.net.URLDecoder.decode(xmlContent, "utf-8"));
			System.out.println(response.toString());
			
		} catch (ClientProtocolException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	public static void create7(){
		HashMap<String, Object> map = new HashMap<String, Object>();
		// map集合
		HashMap<String, Object> head = new HashMap<String, Object>();
		head.put("user_uuid", "696cf8cdf4e65ae3f7b836cdf14ca0c0");
		head.put("password", "123456");
		map.put("head", head);	
		
		HashMap<String, Object> body = new HashMap<String, Object>();
		String[] imageList = {"http://zhongyou2016.img-cn-shanghai.aliyuncs.com/0100008-148049703276269177.jpg","http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100008/a2.jpg","http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100008/a3.jpg"};
		String[] descList = {"http://zhongyou2016.img-cn-shanghai.aliyuncs.com/0100008-148049703276269177.jpg","http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100008/a2.jpg","http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100008/a3.jpg"};
		
		body.put("account_uuid", "696cf8cdf4e65ae3f7b836cdf14ca0c0");
		body.put("title", "【3盒装 黑椒味】香港富崎乐猪肉脯120g/盒");
		body.put("salePrice", 59f);
		body.put("message", "秘制酱汁包裹在猪肉干的表面，结实的肉质，一口咬下去超满足的，精制的猪肉脯，还有5种口味可选，无肉不欢乐的你怎么能错过呢~");
		body.put("imageList", imageList);
		body.put("descList", descList);
		map.put("body",body);
		
		String jsonString = JSON.toJSONString(map); 
		System.out.println(jsonString);
		//评审类别 approval_type，案件uuid case_uuid，案件阶段 case_phase_uuid 创建人uuid creator_uuid
		//查找案件主办律师
		//新建审批条目 在审批信息表 approval_inner_base_infos中0558
		//返回审批uuid
		String url = "http://xingpin.cto1024.com/mingai-admin-api/product/create";
		// String url = "192.168.1.101:8080/apparel/alipay/confirm";
		// String url = "http://test.appring.cn:8080/fastask/question/show"; /* * * * * * root wget http://test.appring.cn:8080/fastask/energy/timing -q -O /usr/local/time/timelog
		HttpPost httpPost = new HttpPost(url);
		StringEntity entity;
		entity = new StringEntity(jsonString, HTTP.UTF_8);
		entity.setContentType("application/json");
		httpPost.setEntity(entity);
		@SuppressWarnings("deprecation")
		HttpClient client = new DefaultHttpClient();
		try {
			HttpResponse response = client.execute(httpPost);
			//获取服务器返回页面的值
			HttpEntity entity2=response.getEntity();
			String xmlContent=EntityUtils.toString(entity2);
			System.out.println(java.net.URLDecoder.decode(xmlContent, "utf-8"));
			System.out.println(response.toString());
			
		} catch (ClientProtocolException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	public static void create8(){
		HashMap<String, Object> map = new HashMap<String, Object>();
		// map集合
		HashMap<String, Object> head = new HashMap<String, Object>();
		head.put("user_uuid", "696cf8cdf4e65ae3f7b836cdf14ca0c0");
		head.put("password", "123456");
		map.put("head", head);	
		
		HashMap<String, Object> body = new HashMap<String, Object>();
		String[] imageList = {"http://zhongyou2016.img-cn-shanghai.aliyuncs.com/0100009-148049722342159312.jpg"};
		String[] descList = {"http://zhongyou2016.img-cn-shanghai.aliyuncs.com/0100009-148049722342159312.jpg"};
		
		body.put("account_uuid", "696cf8cdf4e65ae3f7b836cdf14ca0c0");
		body.put("title", "【3盒装 五香味】香港富崎乐猪肉脯120g/盒");
		body.put("salePrice", 59f);
		body.put("message", "秘制酱汁包裹在猪肉干的表面，结实的肉质，一口咬下去超满足的，精制的猪肉脯，还有5种口味可选，无肉不欢乐的你怎么能错过呢~");
		body.put("imageList", imageList);
		body.put("descList", descList);
		map.put("body",body);
		
		String jsonString = JSON.toJSONString(map); 
		System.out.println(jsonString);
		//评审类别 approval_type，案件uuid case_uuid，案件阶段 case_phase_uuid 创建人uuid creator_uuid
		//查找案件主办律师
		//新建审批条目 在审批信息表 approval_inner_base_infos中0558
		//返回审批uuid
		String url = "http://xingpin.cto1024.com/mingai-admin-api/product/create";
		// String url = "192.168.1.101:8080/apparel/alipay/confirm";
		// String url = "http://test.appring.cn:8080/fastask/question/show"; /* * * * * * root wget http://test.appring.cn:8080/fastask/energy/timing -q -O /usr/local/time/timelog
		HttpPost httpPost = new HttpPost(url);
		StringEntity entity;
		entity = new StringEntity(jsonString, HTTP.UTF_8);
		entity.setContentType("application/json");
		httpPost.setEntity(entity);
		@SuppressWarnings("deprecation")
		HttpClient client = new DefaultHttpClient();
		try {
			HttpResponse response = client.execute(httpPost);
			//获取服务器返回页面的值
			HttpEntity entity2=response.getEntity();
			String xmlContent=EntityUtils.toString(entity2);
			System.out.println(java.net.URLDecoder.decode(xmlContent, "utf-8"));
			System.out.println(response.toString());
			
		} catch (ClientProtocolException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	public static void create9(){
		HashMap<String, Object> map = new HashMap<String, Object>();
		// map集合
		HashMap<String, Object> head = new HashMap<String, Object>();
		head.put("user_uuid", "696cf8cdf4e65ae3f7b836cdf14ca0c0");
		head.put("password", "123456");
		map.put("head", head);	
		
		HashMap<String, Object> body = new HashMap<String, Object>();
		String[] imageList = {"http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100010/a1.jpg","http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100010/a2.jpg","http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100010/a3.jpg"};
		String[] descList = {"http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100010/a1.jpg","http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100010/a2.jpg","http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100010/a3.jpg"};
		
		body.put("account_uuid", "696cf8cdf4e65ae3f7b836cdf14ca0c0");
		body.put("title", "【3盒装 孜然味】香港富崎乐猪肉脯120g/盒");
		body.put("salePrice", 59f);
		body.put("message", "秘制酱汁包裹在猪肉干的表面，结实的肉质，一口咬下去超满足的，精制的猪肉脯，还有5种口味可选，无肉不欢乐的你怎么能错过呢");
		body.put("imageList", imageList);
		body.put("descList", descList);
		map.put("body",body);
		
		String jsonString = JSON.toJSONString(map); 
		System.out.println(jsonString);
		//评审类别 approval_type，案件uuid case_uuid，案件阶段 case_phase_uuid 创建人uuid creator_uuid
		//查找案件主办律师
		//新建审批条目 在审批信息表 approval_inner_base_infos中0558
		//返回审批uuid
		String url = "http://xingpin.cto1024.com/mingai-admin-api/product/create";
		// String url = "192.168.1.101:8080/apparel/alipay/confirm";
		// String url = "http://test.appring.cn:8080/fastask/question/show"; /* * * * * * root wget http://test.appring.cn:8080/fastask/energy/timing -q -O /usr/local/time/timelog
		HttpPost httpPost = new HttpPost(url);
		StringEntity entity;
		entity = new StringEntity(jsonString, HTTP.UTF_8);
		entity.setContentType("application/json");
		httpPost.setEntity(entity);
		@SuppressWarnings("deprecation")
		HttpClient client = new DefaultHttpClient();
		try {
			HttpResponse response = client.execute(httpPost);
			//获取服务器返回页面的值
			HttpEntity entity2=response.getEntity();
			String xmlContent=EntityUtils.toString(entity2);
			System.out.println(java.net.URLDecoder.decode(xmlContent, "utf-8"));
			System.out.println(response.toString());
			
		} catch (ClientProtocolException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	public static void create10(){
		HashMap<String, Object> map = new HashMap<String, Object>();
		// map集合
		HashMap<String, Object> head = new HashMap<String, Object>();
		head.put("user_uuid", "696cf8cdf4e65ae3f7b836cdf14ca0c0");
		head.put("password", "123456");
		map.put("head", head);	
		
		HashMap<String, Object> body = new HashMap<String, Object>();
		String[] imageList = {"http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100011/a1.jpg","http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100011/a2.jpg"};
		String[] descList = {"http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100011/a1.jpg","http://cnpc-2016.img-cn-hangzhou.aliyuncs.com/0100011/a2.jpg"};
		
		body.put("account_uuid", "696cf8cdf4e65ae3f7b836cdf14ca0c0");
		body.put("title", "【3盒装 沙爹味】香港富崎乐猪肉脯120g/盒");
		body.put("salePrice", 59f);
		body.put("message", "秘制酱汁包裹在猪肉干的表面，结实的肉质，一口咬下去超满足的，精制的猪肉脯，还有5种口味可选，无肉不欢乐的你怎么能错过呢~");
		body.put("imageList", imageList);
		body.put("descList", descList);
		map.put("body",body);
		
		String jsonString = JSON.toJSONString(map); 
		System.out.println(jsonString);
		//评审类别 approval_type，案件uuid case_uuid，案件阶段 case_phase_uuid 创建人uuid creator_uuid
		//查找案件主办律师
		//新建审批条目 在审批信息表 approval_inner_base_infos中0558
		//返回审批uuid
		String url = "http://xingpin.cto1024.com/mingai-admin-api/product/create";
		// String url = "192.168.1.101:8080/apparel/alipay/confirm";
		// String url = "http://test.appring.cn:8080/fastask/question/show"; /* * * * * * root wget http://test.appring.cn:8080/fastask/energy/timing -q -O /usr/local/time/timelog
		HttpPost httpPost = new HttpPost(url);
		StringEntity entity;
		entity = new StringEntity(jsonString, HTTP.UTF_8);
		entity.setContentType("application/json");
		httpPost.setEntity(entity);
		@SuppressWarnings("deprecation")
		HttpClient client = new DefaultHttpClient();
		try {
			HttpResponse response = client.execute(httpPost);
			//获取服务器返回页面的值
			HttpEntity entity2=response.getEntity();
			String xmlContent=EntityUtils.toString(entity2);
			System.out.println(java.net.URLDecoder.decode(xmlContent, "utf-8"));
			System.out.println(response.toString());
			
		} catch (ClientProtocolException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	public static void search(){
		HashMap<String, Object> map = new HashMap<String, Object>();
     	// map集合
        HashMap<String, Object> head = new HashMap<String, Object>();
        head.put("user_uuid", "696cf8cdf4e65ae3f7b836cdf14ca0c0");
        head.put("password", "123456");
        map.put("head", head);	
        
        HashMap<String, Object> body = new HashMap<String, Object>();
        
        body.put("accountUuid", "696cf8cdf4e65ae3f7b836cdf14ca0c0");
        body.put("fakeId", "1018");
        map.put("body",body);
  
   	    String jsonString = JSON.toJSONString(map); 
   	    System.out.println(jsonString);
   	    //评审类别 approval_type，案件uuid case_uuid，案件阶段 case_phase_uuid 创建人uuid creator_uuid
   	    //查找案件主办律师
   	    //新建审批条目 在审批信息表 approval_inner_base_infos中0558
   	    //返回审批uuid
   	    String url = "http://xingpin.cto1024.com/mingai-admin-api/product/search";
   	    // String url = "192.168.1.101:8080/apparel/alipay/confirm";
   	    // String url = "http://test.appring.cn:8080/fastask/question/show"; /* * * * * * root wget http://test.appring.cn:8080/fastask/energy/timing -q -O /usr/local/time/timelog
 	    HttpPost httpPost = new HttpPost(url);
   	    StringEntity entity;
   	    entity = new StringEntity(jsonString, HTTP.UTF_8);
		entity.setContentType("application/json");
		httpPost.setEntity(entity);
		@SuppressWarnings("deprecation")
		HttpClient client = new DefaultHttpClient();
		try {
			HttpResponse response = client.execute(httpPost);
			//获取服务器返回页面的值
			HttpEntity entity2=response.getEntity();
			String xmlContent=EntityUtils.toString(entity2);
			System.out.println(java.net.URLDecoder.decode(xmlContent, "utf-8"));
			System.out.println(response.toString());

		} catch (ClientProtocolException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	public static void search2(){
		HashMap<String, Object> map = new HashMap<String, Object>();
		// map集合
		HashMap<String, Object> head = new HashMap<String, Object>();
		head.put("user_uuid", "696cf8cdf4e65ae3f7b836cdf14ca0c0");
		head.put("password", "123456");
		map.put("head", head);	
		
		HashMap<String, Object> body = new HashMap<String, Object>();
		
		body.put("accountUuid", "72fdfb1d0d9a5b83484dc1f437d2b614");
		body.put("productUuid", "6ce3ba99807035b0bc328e8bcd282512");
		map.put("body",body);
		
		String jsonString = JSON.toJSONString(map); 
		System.out.println(jsonString);
		//评审类别 approval_type，案件uuid case_uuid，案件阶段 case_phase_uuid 创建人uuid creator_uuid
		//查找案件主办律师
		//新建审批条目 在审批信息表 approval_inner_base_infos中0558
		//返回审批uuid
		String url = "http://xingpin.cto1024.com/mingai-admin-api/product/searchByProductUuid";
		// String url = "192.168.1.101:8080/apparel/alipay/confirm";
		// String url = "http://test.appring.cn:8080/fastask/question/show"; /* * * * * * root wget http://test.appring.cn:8080/fastask/energy/timing -q -O /usr/local/time/timelog
		HttpPost httpPost = new HttpPost(url);
		StringEntity entity;
		entity = new StringEntity(jsonString, HTTP.UTF_8);
		entity.setContentType("application/json");
		httpPost.setEntity(entity);
		@SuppressWarnings("deprecation")
		HttpClient client = new DefaultHttpClient();
		try {
			HttpResponse response = client.execute(httpPost);
			//获取服务器返回页面的值
			HttpEntity entity2=response.getEntity();
			String xmlContent=EntityUtils.toString(entity2);
			System.out.println(java.net.URLDecoder.decode(xmlContent, "utf-8"));
			System.out.println(response.toString());
			
		} catch (ClientProtocolException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
